﻿#define _CRT_SECURE_NO_WARNINGS 1

//OJ练习题
//LCP 01. 猜数字
//https://leetcode.cn/problems/guess-numbers/description/

int game(int* guess, int guessSize, int* answer, int answerSize)
{
    //猜对的次数
    int right = 0;

    for (int i = 0; i < 3; i++)
    {
        if (guess[i] == answer[i])
        {
            right++;
        }
    }

    return right;
}
